//
//  AllProjectRequest.h
//  UserUse
//
//  Created by angra on 16/10/14.
//  Copyright © 2016年 CJPC. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AllProjectRequest : NSObject
/**
 *  登录
 */
+(void)loginWithUserPhone:(NSString *)userphone userpwd:(NSString *)userpwd userType:(NSString *)usertype success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  获取token
 */
+(void)cookie_tokenWithParameters:(NSDictionary *)params success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  注册请求
 */
+(void)registWithUserPhone:(NSString *)userPhone userpwd:(NSString *)userpwd mobileCode:(NSString *)mobleCode success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  获取验证码
 */
+(void)codeWithUserPhone:(NSString *)userphone success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  忘记密码
 */
+(void)forgetPasswordWithUserPhone:(NSString *)userphone userpwd:(NSString *)userpwd mobileCode:(NSString *)mobileCode success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  获取省份
 */
+(void)provinceWithRequestSuccess:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  获取市
 */
+(void)cityWithProvinceCode:(NSString *)code success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  获取区
 */
+(void)districtsWithCityCode:(NSString *)code success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;

/**
 获取路线
 */
+(void)getRountiWithDestination:(NSString *)destion withToken:(NSString *)token success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  创建订单
 */
+(void)createOrderWithOrigin:(NSString *)origin destination:(NSString *)destination orderType:(NSString *)orderType orderUser:(NSString *)orderUser orederNumber:(NSString *)orderNum travelTime:(NSString *)travelTime routeId:(NSString *)routeid andPrice:(NSString *)price success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  订单详情
 */
+(void)orderDetailWithOrderId:(NSString *)orderId success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  订单支付
 */
+(void)payOrderWithOrderId:(NSString *)orderId success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  订单取消
 */
+(void)cancelOrderWithOrderId:(NSString *)orderId success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;
/**
 *  查询“我的”订单
 */
+(void)checkOrderWithUserId:(NSString *)userId WithPage:(NSInteger)pagecount success:(void(^)(NSMutableArray * listDatas))success failure:(void(^)(NSString *error))failure;
/**
 *  订单完成
 */
+(void)finishTheOrderWith:(NSString *)orderId success:(void(^)(NSMutableArray * listDatas))success failure:(void(^)(NSString *error))failure;
/**
 *  提交修改
 */
+(void)commintModificationWithUserName:(NSString *)username WithUserCarNum:(NSString*)userCarNum WithImage:(UIImage *)img
                               success:(void(^)(id responseObject))success failure:(void(^)(NSError *error))failure;
/**
 *  系统消息列表
 */
+(void)queryAllMessageByUser:(NSString *)userId success:(void(^)(id responseObject))success failure:(void(^)(NSString *error))failure;

//我的订单
+(void)queryAllOrderByDriver:(NSString *)driverId success:(void(^)(id responseObject))success failure:(void(^)(NSError *error))failure;

+(void)queryOrderDetail:(NSString *)orderId success:(void(^)(id responseObject))success failure:(void(^)(NSError *error))failure;

//首页
+(void)queryUnfinishOrderList:(NSString *)orderId success:(void(^)(id responseObject))success failure:(void(^)(NSError *error))failure;

@end
